#ifndef EQUIPMENTSTATUS_H
#define EQUIPMENTSTATUS_H

#define ZAOJIANDISPLAY 0
#include <QLabel>
#include <QListWidget>
#include <QPushButton>
#include <QStackedWidget>
#include <QWidget>

class EquipmentStatus : public QWidget
{
    Q_OBJECT
public:
    explicit EquipmentStatus(QWidget *parent = 0);

    QPushButton *DCUBtn1;
    QLabel *     DCUVerLabel1;
    QPushButton *DCUBtn6;
    QLabel *     DCUVerLabel6;

    QPushButton *MasterBtn1;
    QLabel *     MasterVerLabel1;
    QPushButton *MasterBtn6;
    QLabel *     MasterVerLabel6;

    QPushButton *SlaveBtn1;
    QLabel *     SLaveVerLabel1;
    QPushButton *SlaveBtn2;
    QLabel *     SLaveVerLabel2;
    QPushButton *SlaveBtn3;
    QLabel *     SLaveVerLabel3;
    QPushButton *SlaveBtn4;
    QLabel *     SLaveVerLabel4;
    QPushButton *SlaveBtn5;
    QLabel *     SLaveVerLabel5;
    QPushButton *SlaveBtn6;
    QLabel *     SLaveVerLabel6;

    QLabel *SlaveVolume1;
    QLabel *SlaveVolume2;
    QLabel *SlaveVolume3;
    QLabel *SlaveVolume4;
    QLabel *SlaveVolume5;
    QLabel *SlaveVolume6;

    QLabel *SlaveNoise1;
    QLabel *SlaveNoise2;
    QLabel *SlaveNoise3;
    QLabel *SlaveNoise4;
    QLabel *SlaveNoise5;
    QLabel *SlaveNoise6;

    QLabel *NoiseLabel;
    QLabel *VolumeLabel;
    QLabel *StatusLabel;

    QPushButton *NormalBtn;
    QPushButton *ErrorBtn;
    QPushButton *UnknowBtn;

    QPushButton *Cancel;
    QPushButton *LeftArrow;
    QPushButton *RightArrow;

    void initTabHead();

    void initTabLabel();

    void clearTabLabel();

    void setTabLabel(QStringList devList, int page = 0);

private:
    QPalette background;
    QLabel * headDevName;
    QLabel * headnNoise;
    QLabel * headDevId;
    QLabel * headIp;
    QLabel * headVol;
    QLabel * headStatus;

    QList<QLabel *> statusLabelList;

signals:
    void devStateUISignalforUp();
    void devStateUISignalforDown();
};

#endif  // EQUIPMENTSTATUS_H
